from django.urls import re_path
from rest_framework_jwt.views import obtain_jwt_token

from .views import *

urlpatterns = [
    # 简单视图集
    re_path(r'^gatherings/$', ActiveView.as_view()),

    # 复杂视图集
    re_path(r'^gatherings/(?P<pk>\d+)/$', ActiveDetialView.as_view()),

    # 报名活动
    re_path(r'^gatherings/(?P<pk>\d+)/join/$', UserJoinActive.as_view()),


]